<?php

/**
 * @package examples
 */

require 'Zend/Log.php';
require 'Zend/Log/Writer/Stream.php';

$log    = new Zend_log();

// enregistrement du journal sur l'écran (affichage)
$writer = new Zend_Log_Writer_Stream("php://output");

$log->addWriter($writer);
try {
    $obj->method();
} catch (Exception $e) {
    $log->log($e, Zend_Log::INFO);
}